/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.accident.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.koron.common.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class AccidentBulletin extends BaseEntity {

    @ApiModelProperty(name = "corpCode",value = "水司code",required = true)
    private String corpCode;

    @ApiModelProperty(name = "corpName",value = "水司名称")
    private String corpName;

    @ApiModelProperty(name = "name",value = "事故名称",required = true)
    private String name;

    @ApiModelProperty(name = "accidentType",value = "事件类别",required = true)
    private String accidentType;

    @ApiModelProperty(name = "accidentTypeName",value = "事件类别名称")
    private String accidentTypeName;

    @ApiModelProperty(name = "departmentCode",value = "事发单位code",required = true)
    private String departmentCode;

    @ApiModelProperty(name = "departmentName",value = "事发单位名称",required = true)
    private String departmentName;

    @ApiModelProperty(name = "occurrencePlace",value = "发生地点")
    private String occurrencePlace;

    @ApiModelProperty(name = "occurrenceTime",value = "发生时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date occurrenceTime;
    private String occurrenceTimeStr;

    @ApiModelProperty(name = "accidentReason",value = "事故原因")
    private String accidentReason;

    @ApiModelProperty(name = "accidentDescription",value = "事故描述")
    private String accidentDescription;

    @ApiModelProperty(name = "isDeal",value = "是否发待办，0:不发送，1发送",required = true)
    private Integer isDeal;

    @ApiModelProperty(name = "dealPerson",value = "接收待办人员code,多个用，分开")
    private String dealPerson;

    @ApiModelProperty(name = "dealPersonName",value = "接收待办人员名称，多个用，分开")
    private String dealPersonName;

    @ApiModelProperty(name = "isSendEmail",value = "是否发邮件，0:不发送，1发送",required = true)
    private Integer isSendEmail;

    @ApiModelProperty(name = "sendEmailPerson",value = "接收邮箱人员code,多个之间用，分开")
    private String sendEmailPerson;

    @ApiModelProperty(name = "sendEmailPersonName",value = "接收邮箱人员名称,多个之间用，分开")
    private String sendEmailPersonName;

    @ApiModelProperty(name = "isSendMsg",value = "是否发送短信，0:不发送，1发送",required = true)
    private Integer isSendMsg;

    @ApiModelProperty(name = "msgPerson",value = "接收短信人员code,多个之间用，分开",required = true)
    private String msgPerson;

    @ApiModelProperty(name = "msgPersonName",value = "接收短信人员名称,多个之间用，分开",required = true)
    private String msgPersonName;

    @ApiModelProperty(name = "msgContent",value = "短信内容")
    private String msgContent;

    @ApiModelProperty(name = "remark",value = "备注")
    private String remark;

    @ApiModelProperty(value = "附件",name = "attachment")
    private String attachment;

    @ApiModelProperty(name="status",value = "审批状态，0:审批中，1：审批完成，2：新增驳回，3：修改驳回，4：删除驳回",required = true)
    private Integer status;

    @ApiModelProperty(name="isRemove",value = "是否删除，0:未删除，1：已删除",required = true)
    private Integer isRemove;

    public String getCorpCode() {
        return corpCode;
    }

    public void setCorpCode(String corpCode) {
        this.corpCode = corpCode;
    }

    public String getCorpName() {
        return corpName;
    }

    public void setCorpName(String corpName) {
        this.corpName = corpName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAccidentType() {
        return accidentType;
    }

    public void setAccidentType(String accidentType) {
        this.accidentType = accidentType;
    }

    public String getAccidentTypeName() {
        return accidentTypeName;
    }

    public void setAccidentTypeName(String accidentTypeName) {
        this.accidentTypeName = accidentTypeName;
    }

    public String getDepartmentCode() {
        return departmentCode;
    }

    public void setDepartmentCode(String departmentCode) {
        this.departmentCode = departmentCode;
    }

    public String getDepartmentName() {
        return departmentName;
    }

    public void setDepartmentName(String departmentName) {
        this.departmentName = departmentName;
    }

    public String getOccurrencePlace() {
        return occurrencePlace;
    }

    public void setOccurrencePlace(String occurrencePlace) {
        this.occurrencePlace = occurrencePlace;
    }

    public Date getOccurrenceTime() {
        return occurrenceTime;
    }

    public void setOccurrenceTime(Date occurrenceTime) {
        this.occurrenceTime = occurrenceTime;
    }

    public String getAccidentReason() {
        return accidentReason;
    }

    public void setAccidentReason(String accidentReason) {
        this.accidentReason = accidentReason;
    }

    public String getAccidentDescription() {
        return accidentDescription;
    }

    public void setAccidentDescription(String accidentDescription) {
        this.accidentDescription = accidentDescription;
    }

    public Integer getIsDeal() {
        return isDeal;
    }

    public void setIsDeal(Integer isDeal) {
        this.isDeal = isDeal;
    }

    public String getDealPerson() {
        return dealPerson;
    }

    public void setDealPerson(String dealPerson) {
        this.dealPerson = dealPerson;
    }

    public String getDealPersonName() {
        return dealPersonName;
    }

    public void setDealPersonName(String dealPersonName) {
        this.dealPersonName = dealPersonName;
    }

    public Integer getIsSendEmail() {
        return isSendEmail;
    }

    public void setIsSendEmail(Integer isSendEmail) {
        this.isSendEmail = isSendEmail;
    }

    public String getSendEmailPerson() {
        return sendEmailPerson;
    }

    public void setSendEmailPerson(String sendEmailPerson) {
        this.sendEmailPerson = sendEmailPerson;
    }

    public String getSendEmailPersonName() {
        return sendEmailPersonName;
    }

    public void setSendEmailPersonName(String sendEmailPersonName) {
        this.sendEmailPersonName = sendEmailPersonName;
    }

    public Integer getIsSendMsg() {
        return isSendMsg;
    }

    public void setIsSendMsg(Integer isSendMsg) {
        this.isSendMsg = isSendMsg;
    }

    public String getMsgPerson() {
        return msgPerson;
    }

    public void setMsgPerson(String msgPerson) {
        this.msgPerson = msgPerson;
    }

    public String getMsgPersonName() {
        return msgPersonName;
    }

    public void setMsgPersonName(String msgPersonName) {
        this.msgPersonName = msgPersonName;
    }

    public String getMsgContent() {
        return msgContent;
    }

    public void setMsgContent(String msgContent) {
        this.msgContent = msgContent;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getAttachment() {
        return attachment;
    }

    public void setAttachment(String attachment) {
        this.attachment = attachment;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getIsRemove() {
        return isRemove;
    }

    public void setIsRemove(Integer isRemove) {
        this.isRemove = isRemove;
    }

    public String getOccurrenceTimeStr() {
        return occurrenceTimeStr;
    }

    public void setOccurrenceTimeStr(String occurrenceTimeStr) {
        this.occurrenceTimeStr = occurrenceTimeStr;
    }

    @Override
    public String toString() {
        return "AccidentBulletin{" +
                "corpCode='" + corpCode + '\'' +
                ", corpName='" + corpName + '\'' +
                ", name='" + name + '\'' +
                ", accidentType='" + accidentType + '\'' +
                ", accidentTypeName='" + accidentTypeName + '\'' +
                ", departmentCode='" + departmentCode + '\'' +
                ", departmentName='" + departmentName + '\'' +
                ", occurrencePlace='" + occurrencePlace + '\'' +
                ", occurrenceTime=" + occurrenceTime +
                ", accidentReason='" + accidentReason + '\'' +
                ", accidentDescription='" + accidentDescription + '\'' +
                ", isDeal=" + isDeal +
                ", dealPerson='" + dealPerson + '\'' +
                ", dealPersonName='" + dealPersonName + '\'' +
                ", isSendEmail=" + isSendEmail +
                ", sendEmailPerson='" + sendEmailPerson + '\'' +
                ", sendEmailPersonName='" + sendEmailPersonName + '\'' +
                ", isSendMsg=" + isSendMsg +
                ", msgContent='" + msgContent + '\'' +
                ", remark='" + remark + '\'' +
                '}';
    }
}
